package com.haircut.sys.service.menu.impl;

import com.haircut.sys.dao.menu.SysMenuMapper;
import com.haircut.sys.service.menu.IMenuService;
import com.haircut.sys.utils.user.SecurityUtils;
import com.haircut.sys.vo.menu.MenuListReqVo;
import com.haircut.sys.vo.menu.MenuListVo;
import com.haircut.sys.vo.menu.MenuTreeVo;
import com.modular.utils.DBUtils;
import com.modular.utils.SecurityUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements IMenuService {
    @Autowired
    private SysMenuMapper menuMapper;
    /**
     * 查询所欲的菜单信息
     * @param reqVo
     * @return
     */
    @Override
    public List<MenuListVo> findAll(MenuListReqVo reqVo)
    {
        reqVo.setMenuName(DBUtils.escapeQuryLikeParam(reqVo.getMenuName()));
        return menuMapper.findAll(reqVo);
    }



}
